package com.free.helloworld;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

/**
 * <p>Title: Eclipse Plugin Development</p>
 * <p>Description: Free download</p>
 * <p>mail: ganshm@gmail.com</p>
 */


public class HelloWorldSwt {

	  public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);
		shell.setText("hello world! Window");
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {// If no more entries in event queue
				display.sleep();
			}
		}
		display.dispose();
	}

}


